package demo02;


public class Bubble {

    StateOn stateOn=new StateOn(this);
    StateOff stateOff=new StateOff(this);

    StateBubble stateBubble=stateOff;

    public void on(){
        stateBubble.on();
    }

    public void off(){
        stateBubble.off();
    }

    public StateOn getStateOn() {
        return stateOn;
    }

    public void setStateOn(StateOn stateOn) {
        this.stateOn = stateOn;
    }


    public StateOff getStateOff() {
        return stateOff;
    }

    public void setStateOff(StateOff stateOff) {
        this.stateOff = stateOff;
    }

    public StateBubble getStateBubble() {
        return stateBubble;
    }

    public void setStateBubble(StateBubble stateBubble) {
        this.stateBubble = stateBubble;
    }



}

